From: Richard M. Stallman Date: Mon, 29 Dec 2003 20:00:36 +0000 (+0000) Subject: (ange-ftp-start-process): Copy the environment. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24661 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b8baa569f6f0ebea57e70617f17011f4c74df272;p=emacs.git (ange-ftp-start-process): Copy the environment. --- diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index dc3b5a62da9..0277bd0aabc 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -1918,7 +1918,8 @@ on the gateway machine to do the ftp instead." ;; but that doesn't work: ftp never responds. ;; Can anyone find a fix for that? (let ((process-connection-type t) - (process-environment process-environment) + ;; Copy this so we don't alter it permanently. + (process-environment (copy-tree process-environment)) (buffer (get-buffer-create name))) (save-excursion (set-buffer buffer)